﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Page</title>
    <link rel="stylesheet" type="text/css" media="screen" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="../css/mplayer.css" />
    <script type="text/javascript" src="../script/bar.js"></script>
    <script type="text/javascript" src="../script/testplayers.js"></script>
    <script type="text/javascript" src="../script/swf/swfobject.js"></script>
    <script type="text/javascript">
    <!--									
    var bizurl='http://biz.vsdn.bigtv.com.cn/tsht.php?';
	var live_apiurl='';
	var ts_apiurl='';
    var playurl='';
    var playurlts='';
    var playurllive='';
    var channelname = '';
    function SvPlayerEvent(type, state, playTime, loadPer) {
    	if (type == "init") {
    		id("videoInfo").innerHTML = "播放准备就绪";
    	} else if (type == "ready") {
    		id("videoInfo").innerHTML = "准备新的媒体文件";
    	} else if (type == "startBuffering") {
    		id("videoInfo").innerHTML = "正在缓冲";
    	}
    	if (state == "playing") {
    		id("videoInfo").innerHTML = '正在播放《'+channelname+'》';
    		document.getElementById("play").style.backgroundPosition = "0 -33px";
    	} else if (state == "paused") {
    		id("videoInfo").innerHTML = '播放暂停';
    		document.getElementById("play").style.backgroundPosition = "0 0";
    	} else if (state == "stop") {
    		id("videoInfo").innerHTML = '播放停止';
    		document.getElementById("play").style.backgroundPosition = "0 0";
    	}
    }
    function addLoadEvent(fn) {
    	var oldonload = window.onload;
    	if (typeof window.onload != 'function') {
    		window.onload = fn;
    	} else {
    		window.onload = function() {
    			if (oldonload) {
    				oldonload();
    			}
    			fn();
    		};
    	}
    }
	function goStepOne(apiurl)
    {
		var jsCode = "<script >function goOn(url) { parent.goOn(url)}<\/script><script type=\"text\/javascript\" src=\""+apiurl+"\"><\/script>";
		var jsIframe = document.createElement("iframe");
		jsIframe.style.display = "none";//把jsIframe隐藏起来
		document.body.appendChild(jsIframe);
		with(window.frames[window.frames.length - 1]){
			document.open();
			document.write(jsCode); //执行JS代码
			document.close();
		}
    }
    function goOn(url)
    {
    	//mPlayerLive.Init(url,"700px","394px");
    	//curPlayer = mPlayerLive;
		//mPlayerVod.Init(url,"700px","394px");
		//curPlayer = mPlayerVod;
		//window.parent.document.all('txt_3').innerHTML=encodeURI(url);

		//alert(url);
		//alert(url.lastIndexOf('.flv'));
		if (url.lastIndexOf('.flv') > 0)
		{
			 playurlts = url;
		}
		else if (url!='')
		{
			 playurllive = url;
		}
		if (playurllive!='' && playurlts !='')
		{
			mTsFlvPlayer.Init(encodeURI(playurllive),encodeURI(playurlts),"700px","394px",7);
			curPlayer = mTsFlvPlayer;
		}
		
		//rPlayerVod.Init(url,"700px","394px");
		//curPlayer = rPlayerVod;
    }
	function getplayurl(uuid)
	{
		var playJS = document.createElement("script");
		playJS.src=bizurl+'uuid='+uuid;
		playJS.type='text/javascript';
		playJS.defer=true;
		document.getElementById("LPJS").appendChild(playJS);
	}
    function initPage(fn) {
    	testBarV.Init();
//    	var url = document.location.href;
//    	var tmp = url.substr(url.indexOf('?')+1);
    	var tmp = parent.getvalue();
    	var tmpurl = tmp.substr(0, tmp.indexOf('|') );
    	channelname = decodeURI(tmp.substr(tmp.indexOf('|')+1 ));
    	if (tmpurl) {getplayurl(tmpurl);}//'5b63686e5d757569642e7765627c3430307c317c333030307c323339c1f72db9fec0fbb2a8ccd85b2f63686e5dVSDNSOOONERCOM00'
//    	getplayurl(url.substr(url.indexOf('?')+1));//'5b63686e5d55553030397c6674703a2f2f3139322e3136382e312e3235343a32312f746573742e776d767c74656d707c315b2f63686e5d5b726174655d313030305b2f726174655dVSDNSOOONERCOM00'
    }
    function dropPage()
    {
//    	try{curPlayer.ShowMovie(false); }catch(err){}
//    	try{curPlayer.mdivStop.onclick(); }catch(err){}
    	curPlayer.Delete();
//    	curPlayer = null;
    	// onbeforeunload="dropPage();"
    }
    addLoadEvent(initPage);
    -->
    </script>
</head>
<body>
<div class="mediaPlayer">
      <div class="playerBox" id="flvplayer">
         <!-- 加载时begin -->
        <div id="playing" class="loading">
          <div class="flash">
            <object type="application/x-shockwave-flash" data="../images/icon_loading.swf" width="320" height="80">
              <param name="movie" value="../images/icon_loading.swf"/>
              <param name="menu" value="false" />
            </object>
          </div>
        </div>
        <!--<div id="playing" class="loading" style="display:none">
        	<div class="instext">节目加载中，请稍候……</div>
        </div>-->
       <!-- 加载时end -->
        <!-- 安装插件后begin -->
        <div id="ready" class="ready"></div>
        <div id="stopdiv" class="ready" style="display:none;"></div>
        <!-- 安装插件后end -->
        <!-- 没有安装插件时begin -->
            <!--<div class="noReady">
               <p style="margin-top:180px;">请点击下面的节目，无须安装任何插件直接收看</p>
            </div>-->
       <!-- 没有安装插件时end -->
      </div>
      <div id="ctrlPanel" class="ctrlPanel"></div>
      <div class="ctrlPanel" style="display:none;">
      <div class="clearFix"></div>
        <div id="play"  class="play" title="播放"></div>
        <div id="stop" class="stop" title="停止" style="display:none;"></div>
        <div id="msg" class="msg"></div>
        <div class="volume">
          <div id="mute" class="mute" title="静音"></div>
          <div id="volumeTrack" class="volumeTrack">
            <div id="volumeBar" class="volumeBar" title="拖动调节音量" style="left:60%;"></div>
            <div id="volumeNow" class="volumeNow" title="当前音量" style="width:60%;"></div>
          </div>
        </div>
    </div>
    <div id="LJS" ></div><div id="VJS" ></div><div id="LPJS" ></div><div id="VPJS" ></div>
  <script language="javascript" id="liveJS" src=""></script>
  <iframe id="frm1" style="display:none;"></iframe>
  <iframe id="frm2" style="display:none;"></iframe>
</body>
</html>

